package com.logistics.modules.warehouseManagement.entity;

import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.logistics.modules.transportationManagement.entity.CargoEntity;
import com.logistics.modules.transportationManagement.entity.CargotypeEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 
 * 
 * @author HURRICANE
 * @email HURRICANE@nb.com
 * @date 2022-05-07 10:44:16
 */
@Data
@TableName("seat")
@JsonIgnoreProperties(value = {"handler"})
@ExcelTarget("teacherEntity")
public class SeatEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * id 自增
	 */
	@TableId
	private Integer id;
	/**
	 * 席位名称
	 */
	@cn.afterturn.easypoi.excel.annotation.Excel(name = "席位名称", height = 20, width = 30, isImportField = "seatName")
	private String seatName;
	/**
	 * 仓库id 这个席位属于那个id
	 */
	private Integer repositoryId;
	/**
	 * 席位容积
	 */
	@cn.afterturn.easypoi.excel.annotation.Excel(name = "席位容积", height = 20, width = 30, isImportField = "seatVolume")
	private Integer seatVolume;
	/**
	 * 席位状态 0 空闲中 1 使用中
	 */
	private Integer seatStatus;
	/**
	 * 货物保存到席位的时间
	 */
	private Date cargoSaveSeat;
	/**
	 * 保存的货物id
	 */
	private Integer cargoId;
	/**
	 * 排序
	 */
	private Integer seatOrder;
	/**
	 * 删除状态（0，正常，1已删除）
	 */
	private Integer delFlag;

	/**
	 * 货物类型id
	 */
	private Integer cargoTypeId;
	/**
	 * 货物类型
	 */
	@TableField(exist = false)
	@ExcelEntity(id = "id")
	private CargotypeEntity cargoType;

	/**
	 * 存储库
	 */
	@TableField(exist = false)
	private RepositoryEntity repository;

	/**
	 * 货物
	 */
	@TableField(exist = false)
	private CargoEntity cargo;


}
